#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
2、求100以内能被3整除的数，并将作为列表输出
'''
class Number(object):
    def __init__(self, num):
        self.num = num

    def Chuyi_3(self):
        a = []
        for i in range(1, self.num):
            if i % 3 == 0:
                a.append(i)
            i += 1
        print(a)

if __name__ == '__main__':
    result = Number(100)
    result.Chuyi_3()